package com.hantang.web.servlet;

import java.io.PrintWriter;

import javax.servlet.http.HttpServletRequest;

/**
 * 
 * http://zhidao.baidu.com/question/353756971.html
 * http://www.blogjava.net/baoyaer/articles/107428.html
 * @author Administrator
 * 
 */
public class HelloWorld extends BaseServlet {
 

	/**
	 * 
	 */
	private static final long serialVersionUID = 572865851903869161L;

	@Override
	public int doService(HttpServletRequest request, PrintWriter out) {
		out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">");
		out.println("<HTML>");
		out.println("  <HEAD><TITLE>A Servlet</TITLE></HEAD>");
		out.println("  <BODY>");
		out.println("hello world,hangtang..");
		out.println("  </BODY>");
		out.println("</HTML>");
		
//		out.to
		return SERVLET_SUCCESS_CODE;
	}

}
